<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SciftbactcontEditDlg" widgetVar="SciftbactcontEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditSciftbactcontTitle}">

            <h:form id="SciftbactcontEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{sciftbactcontController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditSciftbactcontLabel_sciftbactcontid}" for="sciftbactcontid" />
                        <h:outputText id="sciftbactcontid" value="#{sciftbactcontController.selected.sciftbactcontid}" />

                        <p:outputLabel value="#{myBundle.EditSciftbactcontLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{sciftbactcontController.selected.nombre}" title="#{myBundle.EditSciftbactcontTitle_nombre}" required="true" requiredMessage="#{myBundle.EditSciftbactcontRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.EditSciftbactcontLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{sciftbactcontController.selected.fecharegistro}" title="#{myBundle.EditSciftbactcontTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditSciftbactcontRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditSciftbactcontLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{sciftbactcontController.selected.observaciones}" title="#{myBundle.EditSciftbactcontTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.EditSciftbactcontLabel_sciftbcontratid}" for="sciftbcontratid" />
                        <p:selectOneMenu id="sciftbcontratid" value="#{sciftbactcontController.selected.sciftbcontratid}" required="true" requiredMessage="#{myBundle.EditSciftbactcontRequiredMessage_sciftbcontratid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sciftbcontratController.items}"
                                           var="sciftbcontratidItem"
                                           itemValue="#{sciftbcontratidItem}"
                                           itemLabel="#{sciftbcontratidItem.sciftbcontratid.toString()}"
                                           />
                            <f:converter binding="#{sciftbcontratConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditSciftbactcontLabel_pytctbactcompid}" for="pytctbactcompid" />
                        <p:selectOneMenu id="pytctbactcompid" value="#{sciftbactcontController.selected.pytctbactcompid}" required="true" requiredMessage="#{myBundle.EditSciftbactcontRequiredMessage_pytctbactcompid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pytctbactcompController.items}"
                                           var="pytctbactcompidItem"
                                           itemValue="#{pytctbactcompidItem}"
                                           itemLabel="#{pytctbactcompidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pytctbactcompConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditSciftbactcontLabel_pydgtbresponsaid}" for="pydgtbresponsaid" />
                        <p:selectOneMenu id="pydgtbresponsaid" value="#{sciftbactcontController.selected.pydgtbresponsaid}" required="true" requiredMessage="#{myBundle.EditSciftbactcontRequiredMessage_pydgtbresponsaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pydgtbresponsaController.items}"
                                           var="pydgtbresponsaidItem"
                                           itemValue="#{pydgtbresponsaidItem}"
                                           itemLabel="#{pydgtbresponsaidItem.pydgtbresponsaid.toString()}"
                                           />
                            <f:converter binding="#{pydgtbresponsaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sciftbactcontController.save}" value="#{myBundle.Save}" update="display,:SciftbactcontListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SciftbactcontEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SciftbactcontEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
